﻿@model IPagedList<SketchTour.Models.MSST00Models>
@using SketchTour.Paging;
@using Resources;
<div style="width: 100%; overflow: auto;">
    <table class="data-table" style="width: 1600px;">
        <thead>
            <tr bgcolor="D8E6FC">
                <th style="text-align: center;" scope="col" class="th10">
                    <input type="checkbox" value="" class="classCheck" />
                </th>
                <th style="text-align: center;" scope="col" class="th100">
                    @Resource.MSST00_SCR_lblCode
                </th>
                <th style="text-align: center;" scope="col" class="th100">
                    @Resource.MSST00_SCR_lblType
                </th>
                <th style="text-align: center;" scope="col" class="th200">
                    @Resource.MSST00_SCR_lblNameVN
                </th>
                <th style="text-align: center;" scope="col" class="th100">
                    @Resource.MSST00_SCR_lblNameEN
                </th>
                <th style="text-align: center;" scope="col" class="th60">
                    @Resource.MSST00_SCR_lblBir
                </th>
                <th style="text-align: center;" scope="col" class="th50">
                    @Resource.MSST00_SCR_lblSex
                </th>
                <th style="text-align: center;" scope="col" class="th50">
                    @Resource.MSST00_SCR_lblTel
                </th>
                <th style="text-align: center;" scope="col" class="th50">
                    @Resource.MSST00_SCR_lblEmail
                </th>
                <th style="text-align: center;" scope="col" class="th250">
                    @Resource.MSST00_SCR_lblAddress
                </th>
                <th style="text-align: center;" scope="col" class="th150">
                    @Resource.MSST00_SCR_lblExp
                </th>
                <th style="text-align: center;" scope="col" class="th250">
                    @Resource.MSST00_SCR_lblLang
                </th>
            </tr>
        </thead>
        <tbody>
            @if (Model != null)
            {
                foreach (var item in Model)
                {
                <tr>
                    <td>
                        @Html.CheckBox("chkPODetail" + item.Code, false, new { onclick = "selectItem('chkPODetail" + item.Code + "')" })
                        @Html.Hidden("hdfPODetailId" + item.Code, item.Code)
                    </td>
                    <td style="text-align: left;">
                        @Html.DisplayFor(modelItem => item.Code)
                    </td>
                    <td style="text-align: left;">
                        @Html.DisplayFor(modelItem => item.StaffType)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.NameVN)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.NameEN)
                    </td>
                    <td style="text-align: center;">
                         @Html.DisplayFor(modelItem => item.BirthDay)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.Sex)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.Tel)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.Email)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.Address)
                    </td>
                    <td style="text-align: left;">
                        @Html.DisplayFor(modelItem => item.Experience)
                    </td>
                    <td style="text-align: left;">
                         @Html.DisplayFor(modelItem => item.StaffOfLanguage)
                    </td>
                </tr>
                }
            }
        </tbody>
    </table>
</div>
<div class="pager">
    @if (Model != null)
    {
        @Html.Raw(Ajax.Pager(new AjaxOptions
       {
           UpdateTargetId = "divList",
           OnBegin = "beginPaging",
           OnSuccess = "successPaging",
           OnFailure = "failurePaging",
           InsertionMode = InsertionMode.Replace,
           HttpMethod = "POST"

       }, ViewData.Model.PageSize, ViewData.Model.PageNumber,
                                       ViewData.Model.TotalItemCount, new
                                       {
                                           controller = SketchTour.Common.CData.ScreenID.MSST00,
                                           action = "Index"

                                       }))
    }
</div>
